﻿[[title="项目列表",pagesize="20",orderby="createTime desc",condition=""]]
<script language="javascript" type="text/javascript">
    function changeWindowSize() {
        wmsCommon.setListDivStyle("listDiv", 1);
    }
    $(function () {
        wmsCommon.setListDivStyle("listDiv", 1);
    });
    function ExportExcel() {
        var form = $("<form>");
        form.attr('style', 'display:none');
        form.attr('target', '');
        form.attr('method', 'post');
        form.attr('action', 'Exec/ExportExcel.aspx');
        var input1 = $('<input>');
        input1.attr('type', 'hidden');
        input1.attr('name', 'FileType');
        input1.attr('value', 'ExportByTemplete');

        var input2 = $('<input>');
        input2.attr('type', 'hidden');
        input2.attr('name', 'projectName');
        input2.attr('value', $("#projectName").val());

        var input3 = $('<input>');
        input3.attr('type', 'hidden');
        input3.attr('name', 'departWBS');
        input3.attr('value', $("#departWBS").val());

        var input4 = $('<input>');
        input4.attr('type', 'hidden');
        input4.attr('name', 'projectManager');
        input4.attr('value', $("#projectManager").val());

        var input5 = $('<input>');
        input5.attr('type', 'hidden');
        input5.attr('name', 'status');
        input5.attr('value', $("#status").val());

        var input8 = $('<input>');
        input8.attr('type', 'hidden');
        input8.attr('name', 'contactCode');
        input8.attr('value', $("#contactCode").val());

        var input6 = $('<input>');
        input6.attr('type', 'hidden');
        input6.attr('name', 'customName');
        input6.attr('value', $("#customName").val());

        var input9 = $('<input>');
        input9.attr('type', 'hidden');
        input9.attr('name', 'projectType');
        input9.attr('value', $("#projectType").val());

        var input7 = $('<input>');
        input7.attr('type', 'hidden');
        input7.attr('name', 'path');
        input7.attr('value', 'Exec/templete/项目状态2013-2014.xls');

        var input10 = $('<input>');
        input10.attr('type', 'hidden');
        input10.attr('name', 'reportType');
        input10.attr('value', 'programState');

        var input11 = $('<input>');
        input11.attr('type', 'hidden');
        input11.attr('name', 'contractTime1');
        input11.attr('value', $("input[id*='contractTime$1']").val());

        var input12 = $('<input>');
        input12.attr('type', 'hidden');
        input12.attr('name', 'contractTime2');
        input12.attr('value', $("input[id*='contractTime$2']").val());

        $('body').append(form);
        form.append(input1);
        form.append(input2);
        form.append(input3);
        form.append(input4);
        form.append(input5);
        form.append(input6);
        form.append(input7);
        form.append(input8);
        form.append(input9);
        form.append(input10);
        form.append(input11);
        form.append(input12);
        form.submit();
    }
</script>
<table  class="listMainTable"  height="100%" cellpadding="0" cellspacing="0" >
    <tr>
        <td style="height:40px">
            <table cellspacing="0" cellpadding="0" class="tblSearchParent">
                <tr>
                    <td class="TblSearchPanel_01">
                    </td>
                    <td class="TblSearchPanel_02">
                        <div class="DivSearchTitle" style="float: left;">               
                            查询条件</div>
                        <img alt="点此隐藏或显示搜索区域" id="Image2" src="res/images/display.gif" class="ImgSearch"   onclick="wmsCommon.searchContentCtr()" />
                    </td>
                    <td class="TblSearchPanel_03">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_04">
                    </td>
                    <td>
                        <!-- search content start -->
                        <table id="tblSearch" class="SearchTable">
                            <tr>
                                <td style="text-align: left; width: 100%; ">
                                    <table style="width: auto;">                                   
                                        <tr>
                                            <td class="tdright">
                                                <NOBR>
                                                $project_list.Columns.get_Item("projectName").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("projectName").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                               <NOBR>
                                                $project_list.Columns.get_Item("departWBS").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("departWBS").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                               <NOBR>
                                                $project_list.Columns.get_Item("projectManager").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("projectManager").RenderAsQuery()
                                            </td>
                                        </tr>
                                     <tr>
                                            <td class="tdright">
                                             <NOBR>
                                                $project_list.Columns.get_Item("status").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("status").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                               <NOBR>
                                                $project_list.Columns.get_Item("contactCode").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("contactCode").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                               <NOBR>
                                                $project_list.Columns.get_Item("customName").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("customName").RenderAsQuery()
                                            </td>
                                        </tr>
                                         <tr>
                                            <td class="tdright">
                                               <NOBR>
                                                $project_list.Columns.get_Item("projectType").DisplayName()：
                                                </NOBR>
                                            </td>
                                            <td class="tdleft">
                                                $project_list.Columns.get_Item("projectType").RenderAsQuery()
                                            </td>
                                            <td class="tdright" >
                                               <NOBR>
                                                合同签订日期从：
                                                </NOBR>
                                            </td>
                                            <td colspan="3">       
                                                $project_list.Columns.get_Item("contractTime").RenderAsQuery()   
                                            </td>                       
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align: bottom;">
                                    <div>
                                        $render.RenderButton()
                                    </div>
                                </td>
                                 <td style="vertical-align: bottom;">
                                 
                                  $render.RenderButton(" text=导出Excel; displayType=button;actionType=outExcel; clientMethod=ExportExcel();")
                                 </td>
                            </tr>
                        </table>
                        <!-- search content end-->
                    </td>
                    <td class="TblSearchPanel_06">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_07">
                    </td>
                    <td class="TblSearchPanel_08">
                    </td>
                    <td class="TblSearchPanel_09">
                    </td>
                </tr>
            </table>
        </td>
    </tr>  
    <!--list content start-->
    <tr >
        <td style="vertical-align:text-top;" id="listTd" onresize="changeWindowSize()">
            <div id="listDiv" class="listDivStyle">
                <table id="contenttb" cellpadding="0" cellspacing="0" class="tblList">
                    <tr class="FixedTitleRow">
                        <th style="width: 30px">
                            <span style="cursor: hand" onclick="wmsCommon.checkedAll('contenttb')">选择</span>
                        </th>
                       <th style="width: 20px">
                            $project_list.Columns.get_Item("ROWNUM").Render()
                        </th>
                        <th  >
                            $project_list.Columns.get_Item("projectName").Render()
                        </th>
                        <th >
                            $project_list.Columns.get_Item("departName").Render()
                        </th>                       
                     <th >
                            $project_list.Columns.get_Item("projectManagerName").Render()
                        </th>
                         <th >
                            $project_list.Columns.get_Item("statusName").Render()
                        </th>
                        <th>
                            $project_list.Columns.get_Item("contactCode").Render()
                        </th>
                        <th>
                            $project_list.Columns.get_Item("customName").Render()
                        </th>
                          <th>
                            $project_list.Columns.get_Item("projectTypeName").Render()
                        </th>
                             <th>
                            $project_list.Columns.get_Item("contractTime").Render()
                        </th>                 
                    </tr>
                    #foreach($row in $project_list.Rows)
                    <tr keyvalue="$row.RenderKeyValue()" onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)">
                        <td style="width: 30px">
                            <input style="cursor: hand; border: 0" type="checkbox" />
                        </td>
                         <td style="width: 20px">
                                $row.get_Item("ROWNUM").Render()
                        </td>
                        <td >
                          <NOBR>
                                <a href="#" style="border: 0" onclick="wmsCommon.openLookWin('$row.RenderKeyValue()','project','project_view$row.get_Item('projectType').Render()')">
                                $row.get_Item("projectName").Render()</a>
                                </NOBR>
                        </td>
                        <td style="text-align:center">
                          <NOBR>
                            $row.get_Item("departName").Render()
                              </NOBR>
                        </td>
                      <td style="text-align:center">
                      <NOBR>
                            $row.get_Item("projectManagerName").Render()
                                </NOBR>
                        </td>

                         <td style="text-align:right">
                          <NOBR>
                            $row.get_Item("statusName").Render()
                                </NOBR>
                        </td>


                       <td style="text-align:center">
                        <NOBR>
                            $row.get_Item("contactCode").Render()
                               </NOBR>
                        </td>

                                               <td style="text-align:center">
                        <NOBR>
                            $row.get_Item("customName").Render()
                               </NOBR>
                        </td>

                       <td style="text-align:center">
                        <NOBR>
                            $row.get_Item("projectTypeName").Render()
                               </NOBR>
                        </td>


                         <td style=" text-align:center">
                          <NOBR>
                            $row.get_Item("contractTime").Render()
                              </NOBR>
                        </td>
                  
                    </tr>
                    #end
                </table>
            </div>
        </td>
    </tr>
    <!-- list content end-->
    <tr>
        <td  style="height:20px; vertical-align:text-bottom">
            <div style="height: 20px; background-color: rgb(233, 231, 215); text-align:center; vertical-align:bottom">
                $render.RenderPaging($project_list)
            </div>
        </td>
    </tr>
</table>
